import cgi
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db

class UserInfo(db.Model):
    acount = db.UserProperty(auto_current_user=True, required=True)
    phone = db.StringProperty()
    category = db.StringProperty()
    description = db.StringProperty(multiline=True)
    regist_date = db.DateProperty(auto_now_add=True)

class MoneyItem(db.Model):
    in_or_out = db.BooleanProperty(required=True)
    category = db.StringProperty()
    cost = db.IntegerProperty(required=True)
    description = db.StringProperty(required=True)
    owner = db.ReferenceProperty(UserInfo, required=True)
    
